package cn.kgc.form;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotEmpty;

/**
 * @author wangyue
 * @version 1.0
 */
@Data
@ApiModel(value = "管理员登录表单")
public class AdminLoginForm {
    @ApiModelProperty(name = "username",value ="账号")
    @NotEmpty(message = "账号不能为空")
    private String  username;

    @ApiModelProperty(name = "password",value ="密码")
    @NotEmpty(message = "密码不能为空")
    private String  password;
}
